package com.itheima.dao;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/*
类简介：

功能：

时间：2020/4/6

*/
public interface OrderDao {


    int addOrder(Order order);

    int isExit(Order order);

    Map<String, Object> findById(int id);

    List<Map<String, Object>> getReport();

    Integer getOrderNumberBetweenAnyDate(@Param("start") LocalDateTime start,@Param("end") LocalDateTime end);

    Integer getVisitsNumberBetweenAnyDate(@Param("start") LocalDateTime start,@Param("end") LocalDateTime end);

    List<Map<String,Object>> getHotSetmeal();
}
